﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DanhSachSanPham.aspx.cs" Inherits="NhaCungCap.DanhSachSanPham" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

      <div class="art-post">
                              <div class="art-post-tl"></div>
                              <div class="art-post-tr"></div>
                              <div class="art-post-bl"></div>
                              <div class="art-post-br"></div>
                              <div class="art-post-tc"></div>
                              <div class="art-post-bc"></div>
                              <div class="art-post-cl"></div>
                              <div class="art-post-cr"></div>
                              <div class="art-post-cc"></div>
                              <div class="art-post-body">
                          <div class="art-post-inner art-article">
                                  <tr> <h2 class="art-postheader">Danh sách tài liệu</h2> </tr>
                                          <div class="art-postcontent">
                                               <table class = "san_pham">
                                              <asp:ListView ID="ListView1" runat="server"
                                                  EnableModelValidation="True" onitemcommand="ListView1_ItemCommand" DataKeyNames="IDTaiLieu,TenTL,DonGia" DataSourceID="SqlDataSource1">
                                                  <EditItemTemplate>
                                                      <span style="">TenTL:
                                                      <asp:TextBox ID="TenTLTextBox" runat="server" Text='<%# Bind("TenTL") %>' />
                                                      <br />
                                                      TacGia:
                                                      <asp:TextBox ID="TacGiaTextBox" runat="server" Text='<%# Bind("TacGia") %>' />
                                                      <br />
                                                      MoTa:
                                                      <asp:TextBox ID="MoTaTextBox" runat="server" Text='<%# Bind("MoTa") %>' />
                                                      <br />
                                                      HinhAnh:
                                                      <asp:TextBox ID="HinhAnhTextBox" runat="server" Text='<%# Bind("HinhAnh") %>' />
                                                      <br />
                                                      DonGia:
                                                      <asp:TextBox ID="DonGiaTextBox" runat="server" Text='<%# Bind("DonGia") %>' />
                                                      <br />
                                                      <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                                                          Text="Update" />
                                                      <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                                                          Text="Cancel" />
                                                      <br /><br /></span>
                                                  </EditItemTemplate>
                                                  <EmptyDataTemplate>
                                                      
                                                  </EmptyDataTemplate>
                                                  <InsertItemTemplate>
                                                      <span style="">TenTL:
                                                      <asp:TextBox ID="TenTLTextBox" runat="server" Text='<%# Bind("TenTL") %>' />
                                                      <br />TacGia:
                                                      <asp:TextBox ID="TacGiaTextBox" runat="server" Text='<%# Bind("TacGia") %>' />
                                                      <br />MoTa:
                                                      <asp:TextBox ID="MoTaTextBox" runat="server" Text='<%# Bind("MoTa") %>' />
                                                      <br />HinhAnh:
                                                      <asp:TextBox ID="HinhAnhTextBox" runat="server" Text='<%# Bind("HinhAnh") %>' />
                                                      <br />DonGia:
                                                      <asp:TextBox ID="DonGiaTextBox" runat="server" Text='<%# Bind("DonGia") %>' />
                                                      <br />
                                                      <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                                                          Text="Insert" />
                                                      <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                                                          Text="Clear" />
                                                      <br /><br /></span>
                                                  </InsertItemTemplate>
                                                  <ItemTemplate>
                                <div>
                                    <tr>
                                        <td width="30%">
                                            <div class="book_border">
                                               <a href="ChiTietSanPham.aspx?ma=<%# Eval("IDTaiLieu") %>"><img class="hinh_sp" src="Image/Sach/<%# Eval("HinhAnh") %>" align="left" width="93" height="138" /></a>
                                            </div>
                                            <br />
                                            <div class="gia_ban">
                                                Giá bán: <strong>
                                                    <%# format_tt(Eval("DonGia").ToString()) %>
                                                </strong>VNĐ</div>
                                            <div class="bo_nut">
                                            <asp:TextBox ID="TextBox1"  class="sl" runat="server" Text="1" width="50px" ></asp:TextBox>
                                            <!--    <input id="s" class="sl" type="text" style="width: 50px;" name="email" value="1">-->
                                                <span class="art-button-wrapper"><span class="art-button-l"></span><span class="art-button-r">
                                                </span>
                                                    <asp:LinkButton class="art-button" ID="LinkButton1" runat="server" CommandName="AddToCard" CommandArgument='<%#Eval("IDTaiLieu") %>' >Mua</asp:LinkButton>
                                                </span>&nbsp;&nbsp;&nbsp;</div>
                                        </td>
                                        <td>
                                            <div class="ten">
                                                <a href="ChiTietSanPham.aspx?ma=<%# Eval("IDTaiLieu") %>" style="text-decoration: none !important;"> <h5 style="margin: 5px !important; text-decoration:none !important;">
                                                    <%# Eval("TenTL") %></h5></a>
                                            </div>
                                            <div class="tac_gia">
                                                <%# Eval("TacGia")%>
                                            </div>
                                            <div class="mo_ta">
                                                <%# Eval("MoTa") %>
                                            </div>
                                        </td>
                                    </tr>
                                </div>
                            </ItemTemplate>
                                                  <LayoutTemplate>
                                                     
                                                      <div ID="itemPlaceholderContainer" runat="server" style="">

                                                          <span runat="server" id="itemPlaceholder" />
                                                      </div>
                                                       <div style="margin: 10px; text-align: right; font-size: 13px;">
                                                           <asp:DataPager ID="DataPager1" runat="server" PageSize="5">
                                                               <Fields>
                                                                   <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" FirstPageText="<<" PreviousPageText="<"
                                                                       ShowNextPageButton="False" ShowPreviousPageButton="True" ButtonCssClass="pager_btn" />
                                                                   <asp:NumericPagerField  />
                                                                   <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                                                                       ShowNextPageButton="True" ShowPreviousPageButton="False" NextPageText=">" LastPageText=">>" ButtonCssClass="pager_btn"/>
                                                               </Fields>
                                                           </asp:DataPager>
                                                       </div>
                                                  </LayoutTemplate>
                                                  <SelectedItemTemplate>
                                                      <span style="">TenTL:
                                                      <asp:Label ID="TenTLLabel" runat="server" Text='<%# Eval("TenTL") %>' />
                                                      <br />
                                                      TacGia:
                                                      <asp:Label ID="TacGiaLabel" runat="server" Text='<%# Eval("TacGia") %>' />
                                                      <br />
                                                      MoTa:
                                                      <asp:Label ID="MoTaLabel" runat="server" Text='<%# Eval("MoTa") %>' />
                                                      <br />
                                                      HinhAnh:
                                                      <asp:Label ID="HinhAnhLabel" runat="server" Text='<%# Eval("HinhAnh") %>' />
                                                      <br />
                                                      DonGia:
                                                      <asp:Label ID="DonGiaLabel" runat="server" Text='<%# Eval("DonGia") %>' />
                                                      <br />
<br /></span>
                                                  </SelectedItemTemplate>
                                                 
                                              </asp:ListView>
                                                </table>
                                              <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                                  ConnectionString="<%$ ConnectionStrings:ConnectionStringMembership %>" 
                                                 SelectCommand=""></asp:SqlDataSource>
                                              
                                        <!--BEGIN: NUT      
                                        <p>
                                              	<span class="art-button-wrapper">
                                              		<span class="art-button-l"> </span>
                                              		<span class="art-button-r"> </span>
                                              		<a class="art-button" href="javascript:void(0)">Read more...</a>
                                              	</span> 
                                                
                                       </p>
                                              END: NUT-->
                                              <div class="cleared"></div>
                                              <!--BEGIN: Table-->
                                              <!--
                                              <div class="art-content-layout overview-table">
                                              	<div class="art-content-layout-row">
                                              		<div class="art-layout-cell">
                                                    <div class="overview-table-inner">
                                              	      <h4>Mã sản phẩm</h4>
                                              						  <img src="images/01.png" width="55" height="55" alt="an image" class="image" />
                                              						  <p>ABC XYZ</p>
                                                     </div>
                                              		</div>
                                              		<div class="art-layout-cell">
                                                  <div class="overview-table-inner">
                                              		  <h4>Tên sản phẩm</h4>
                                              						  <img src="images/02.png" width="55" height="55" alt="an image" class="image" />
                                              						  <p>AAAAAAAAAAA</p>
                                              				</div>
                                              		</div>
                                              		<div class="art-layout-cell">
                                                  <div class="overview-table-inner">
                                              		  <h4>Ghi chú</h4>
                                              
                                              						  <img src="images/03.png" width="55" height="55" alt="an image" class="image" />
                                              						  <p>OOOOOOOOOOOOO</p>
                                                            </div>
                                              		</div>
                                              	</div>
                                              </div>
                                              -->
                                              <!-- end table -->
                                                  
                                          </div>
                                          <div class="cleared"></div>
                          </div>
                          
                          		<div class="cleared"></div>
                              </div>
                          </div>
</asp:Content>
